<template>
  <com-card>
    <div slot="com_header">
      <el-alert
        title="注意：只允许为三级分类设置参数"
        :closable="false"
        type="warning"
        show-icon
      >
      </el-alert>
    </div>
    
    <div slot="com_content">
      
    </div>
  </com-card>
</template>

<script>
import ComCard from "../../components/comCard/index.vue";
import { api_query } from "../../api/Parameter.js";

export default {
  components: {
    ComCard,
  },
  data() {
    return {
      formObj: {
        id:"",
        sel:"",
      }, //商品分类的列表
      options: [], //级联选择器
      activeName: "first", //标签页
    };
  },

  //   生命周期函数
  mounted() {
    this.query();
  },
  methods: {
    // 获取商品参数
    async query() {
      this.formObj.id=3;
      this.formObj.sel="only"
      let rst = await api_query(this.formObj);
      let {data}=rst;
      this.formObj=data;
      console.log(rst);
    },
  },
};
</script>

<style lang="less" scoped>
</style>